package com.ksd.modules.advert.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ksd.modules.advert.entity.AdminAdvert;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 广告 Mapper 接口
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-15
 */
public interface AdminAdvertMapper extends BaseMapper<AdminAdvert> {
    @Select("SELECT IFNULL(MAX(sorted),0) FROM maya_advert")
    int maxSort();
}
